Update credit portal settings
Enable or disable portal top-ups of a credit product for a customer. Enabling sets the price they pay: one of the product’s price configurations, or a price of the customer’s own.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Credit portal settings
Whether the customer can buy this credit product from the customer portal. Enabling requires a price: price_configuration_id, custom_price_configuration, or the price already set. Disabling clears the price and removes the customer's own price.
true
ID of one of the credit product's price configurations, in the customer's price book and currency, of type bundle, volume or bulk. Mutually exclusive with custom_price_configuration.
"prc_3kXODDF42QXtnL"
A price of the customer's own, in the customer's currency, replacing any previous one. Same shape as a credit product price configuration. Mutually exclusive with price_configuration_id.
- Volume
- Bulk
- Bundle
Response
Credit portal settings after the update
Customer ID related to the credit.
"cus_Typ0px2W0aiEtl"
Credit product ID.
"itm_3kXODDF42QXtnL"
Whether the customer can buy this credit product from the customer portal. Enabling requires a price: price_configuration_id, custom_price_configuration, or the price already set. Disabling clears the price and removes the customer's own price.
true
Customer currency, which every portal price must use.
"EUR"
Price configuration the customer pays on the portal. null while disabled, or once that price configuration is archived, deleted or not in the customer's currency.
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
- Fee
- Volume
- Packaged
- Bulk
- BPS
- Bundle
Whether price_configuration is the customer's own price.
false

